$(window).load(function(){
	$('.button').bind("click", function(){
		$(window).scrollTo($(this).parent().next(),1000,{onAfter: function(){
			if($(window).scrollTop() != 0)
				$(window).scrollTo($(window).scrollTop()-40,500);
		}});
	});
	var dim = $(window).height() - 130;
	$('.dia').height(dim);
	$(".popup").append('<span class="close" style="border: none; width: 22px; height: 22px;" onclick="sluit(this)"></span>');
	
	
});

function showPopup(element)
{
	$("#background").css("height", $("body").height());
	$("#background").fadeIn();
	$(element).parent().find(".popup").fadeIn();
}

function sluit(element)
{
	$("#background").fadeOut();
	$(element).parent().fadeOut();
}

function drawFace()
{	
}

